# encoding: UTF-8
'''
Created on 2013年11月12日

@author: xuben

主城数据
'''

import ResourceRegionDetailVO
import ResourceRegionRoughVO

#资源区简要信息列表
resourceRegionRoughList = {}
#资源区详细信息
resourceRegionDetailVO = None
#政务事件信息
politicalEventVO = None

def updateResourceRegionRough(data):
    global resourceRegionRoughList
    if 'areas' in data:
        for regionObj in data['areas']:
            regionVO = ResourceRegionRoughVO.ResourceRegionRoughVO(regionObj)
            resourceRegionRoughList[regionVO.id] = regionVO
            
def updateResourceRegionDetail(data):
    global resourceRegionDetailVO
    resourceRegionDetailVO = ResourceRegionDetailVO.ResourceRegionDetailVO(data)
    
'''
更新政务事件
'''
def updatePoliticalEvent(data):
    global politicalEventVO
    politicalEventVO = ResourceRegionDetailVO.PoliticalEventVO(data)